<template>
  <div>
    <div class="search-group">
      <div class="search-gropu-item">
        <label>仓库名称</label>
        <el-input v-model="listQuery.cangkumc" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>货位编号</label>
        <el-input v-model="listQuery.huoweibh" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>层</label>
        <el-input v-model="listQuery.ceng" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>排</label>
        <el-input v-model="listQuery.pai" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>列</label>
        <el-input v-model="listQuery.lie" placeholder="请输入"></el-input>
      </div>
      <!-- <div class="search-gropu-item">
        <label>分类</label>
        <el-select v-model="listQuery.rklx" placeholder="请选择">
          <el-option v-for="(item, index) in $util.getRklx()" :key="index" :label="item.name"
            :value="item.id"></el-option>
        </el-select>
      </div> -->
      <div class="search-gropu-item">
        <label>货位分类</label>
        <el-select v-model="listQuery.huoweifl" placeholder="请选择">
          <el-option
            v-for="(item, index) in $util.getHwlx()"
            :key="index"
            :label="item.name"
            :value="item.id"
          ></el-option>
        </el-select>
      </div>
      <div class="search-gropu-item">
        <label>货位状态</label>
        <el-select v-model="listQuery.huoweizt" placeholder="请选择">
          <el-option
            v-for="(item, index) in $util.getHwzt()"
            :key="index"
            :label="item.name"
            :value="item.id"
          ></el-option>
        </el-select>
      </div>
      <div class="search-button">
        <el-button type="primary" icon="el-icon-search" @click="search">
          查询
        </el-button>
        <el-button icon="el-icon-refresh" @click="resetlist">重置</el-button>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'Test',
    data() {
      return { show: true, kflist: [] }
    },
    props: {
      listQuery: {
        type: Object,
        default: {},
        required: true,
      },
      path: {
        type: String,
        default: null,
        require: true,
      },
    },
    created() {},
    async mounted() {},
    methods: {
      search() {
        this.$parent.search()
      },
      resetlist() {
        this.$parent.resetlist()
      },
    },
  }
</script>
<style lang="scss" scoped>
  .search-group {
    display: flex;
    flex-flow: row wrap;

    .search-gropu-item {
      padding: 10px 20px;
      width: calc((100% - 20px * 8) / 4);
      display: flex;

      label {
        width: 0.8rem;
        white-space: nowrap;
        line-height: 0.32rem;
        margin-right: 0.1rem;
      }

      .el-select {
        width: 100%;
      }
    }

    .search-gropu-item-time {
      width: 500px !important;
      padding: 10px 20px;
      display: flex;

      label {
        white-space: nowrap;
        line-height: 32px;
        margin-right: 10px;
      }
    }

    .search-button {
      margin-left: auto;
      padding: 0.1rem 0.2rem;

      .el-button {
        font-size: 0.14rem !important;
      }
    }
  }
</style>
